<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
</head>
<body style="background: url('../static/bg2.jpg')">
<div class="layui-container" style="width: 600px;margin-top: 10%">

    <form class="layui-form" action="/log_in/" method="post" style="background: #fff; border: 1px solid #e2e2e2; padding: 15px;">
         <h1 style="padding: 20px;margin-left: 20%;color: #009688"> 用户登录</h1>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-icon layui-icon-user" style="font-size: 30px; color: #1E9FFF;"></i>用户名</label>
            <div class="layui-input-block">
                <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-icon layui-icon-password" style="font-size: 30px; color: #1E9FFF;"></i>  密码</label>
            <div class="layui-input-block">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        {% if msg %}
        <h4 style="color: red">{{ msg }}</h4>
        {% endif %}
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
            <p>
        </div>
    </form>
</div>
</body>
</html>
<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>